Integrand size = 20, antiderivative size = 24 \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=-\frac {4 \text {arctanh}(\cos (a+b x))}{b}+\frac {4 \cos (a+b x)}{b} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4373, 2672, 327, 212} \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=\frac {4 \cos (a+b x)}{b}-\frac {4 \text {arctanh}(\cos (a+b x))}{b} \]
[In]
[Out]
Rule 212
Rule 327
Rule 2672
Rule 4373
Rubi steps \begin{align*} \text {integral}& = 4 \int \cos (a+b x) \cot (a+b x) \, dx \\ & = -\frac {4 \text {Subst}\left (\int \frac {x^2}{1-x^2} \, dx,x,\cos (a+b x)\right )}{b} \\ & = \frac {4 \cos (a+b x)}{b}-\frac {4 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cos (a+b x)\right )}{b} \\ & = -\frac {4 \text {arctanh}(\cos (a+b x))}{b}+\frac {4 \cos (a+b x)}{b} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.83 \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=4 \left (\frac {\cos (a+b x)}{b}-\frac {\log \left (\cos \left (\frac {1}{2} (a+b x)\right )\right )}{b}+\frac {\log \left (\sin \left (\frac {1}{2} (a+b x)\right )\right )}{b}\right ) \]
[In]
[Out]
Time = 2.03 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.21
method | result | size |
default | \(\frac {4 \cos \left (x b +a \right )+4 \ln \left (\csc \left (x b +a \right )-\cot \left (x b +a \right )\right )}{b}\) | \(29\) |
risch | \(\frac {2 \,{\mathrm e}^{i \left (x b +a \right )}}{b}+\frac {2 \,{\mathrm e}^{-i \left (x b +a \right )}}{b}+\frac {4 \ln \left ({\mathrm e}^{i \left (x b +a \right )}-1\right )}{b}-\frac {4 \ln \left ({\mathrm e}^{i \left (x b +a \right )}+1\right )}{b}\) | \(64\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.58 \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=\frac {2 \, {\left (2 \, \cos \left (b x + a\right ) - \log \left (\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) + \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right )\right )}}{b} \]
[In]
[Out]
Timed out. \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 92 vs. \(2 (24) = 48\).
Time = 0.22 (sec) , antiderivative size = 92, normalized size of antiderivative = 3.83 \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=\frac {2 \, {\left (2 \, \cos \left (b x + a\right ) - \log \left (\cos \left (b x\right )^{2} + 2 \, \cos \left (b x\right ) \cos \left (a\right ) + \cos \left (a\right )^{2} + \sin \left (b x\right )^{2} - 2 \, \sin \left (b x\right ) \sin \left (a\right ) + \sin \left (a\right )^{2}\right ) + \log \left (\cos \left (b x\right )^{2} - 2 \, \cos \left (b x\right ) \cos \left (a\right ) + \cos \left (a\right )^{2} + \sin \left (b x\right )^{2} + 2 \, \sin \left (b x\right ) \sin \left (a\right ) + \sin \left (a\right )^{2}\right )\right )}}{b} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (24) = 48\).
Time = 0.32 (sec) , antiderivative size = 54, normalized size of antiderivative = 2.25 \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=-\frac {2 \, {\left (\frac {4}{\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 1} - \log \left (-\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1}\right )\right )}}{b} \]
[In]
[Out]
Time = 21.14 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.92 \[ \int \csc ^3(a+b x) \sin ^2(2 a+2 b x) \, dx=\frac {4\,\cos \left (a+b\,x\right )-4\,\mathrm {atanh}\left (\cos \left (a+b\,x\right )\right )}{b} \]
[In]
[Out]